* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0b0b2d, #1a1a40, #0f0f29);
    color: #e0e0ff;
    min-height: 100vh;
    overflow: hidden;
    line-height: 1.6;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 10;
    background: rgba(10, 15, 40, 0.6);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

.subtitle {
    font-size: 1.1rem;
    color: #a0b0ff;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#solar-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 300px;
    max-width: 800px;
    background: rgba(15, 20, 50, 0.7);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
}

.section {
    flex: 1;
    min-width: 250px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.2rem;
}

.planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 4px;
    margin-bottom: 15px;
}

.planet-btn {
    background: rgba(30, 50, 100, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    color: #c0d0ff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.planet-btn:hover {
    background: rgba(50, 80, 160, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(50, 100, 255, 0.2);
}

.planet-btn.active {
    background: rgba(70, 130, 255, 0.3);
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

.planet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.time-controls {
    margin-top: 15px;
}

.slider-container {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #a0b0ff;
    font-size: 0.95rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(50, 80, 150, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4facfe;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.control-btn {
    background: rgba(40, 70, 140, 0.5);
    border: none;
    border-radius: 10px;
    padding: 10px;
    color: #e0e0ff;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(60, 100, 200, 0.7);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(1px);
}

.info-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    width: 300px;
    background: rgba(10, 20, 50, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: transform 0.5s ease;
}

.toggle-info {
    position: absolute;
    top: -40px;
    right: 20px;
    background: rgba(15, 20, 50, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px 8px 0 0;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.planet-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.planet-large-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    flex-shrink: 0;
}

.planet-details h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #4facfe;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(30, 50, 100, 0.3);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.stat .label {
    color: #a0b0ff;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.stat .value {
    font-weight: 500;
    font-size: 1.05rem;
}

.camera-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 20, 50, 0.7);
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 10;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.camera-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4facfe;
    box-shadow: 0 0 8px #4facfe;
}

.camera-status.following {
    background-color: #00ff9d;
    box-shadow: 0 0 8px #00ff9d;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .controls {
        flex-direction: column;
    }

    .info-panel {
        width: calc(100% - 40px);
        top: 100px;
        right: 20px;
        left: 20px;
    }
}